package com.zhu.esyblog.controller;

import com.zhu.esyblog.Utils.UserThreadLocal;
import com.zhu.esyblog.pojo.SysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
@Api(tags = "测试模块")
public class TextController {
    @GetMapping("/test")
    @ApiOperation("测试")
    public String hello(){
        SysUser user = UserThreadLocal.get();
        System.out.println(user);

        return  "666";
    }
}
